﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BDSim
{
    public class SimInfo
    {
        public string Sender { get; set; }
        public string Describe { get; set; }
        public OutputType MsgStatus { get; set; }
        public UTCTime SimTime { get; set; }
        public UTCTime SendTime { get; set; }
        public SimInfo()
        {
            UTCTime sendTime = new UTCTime();
            sendTime.LoadFromDateTime(DateTime.Now);
            SendTime = sendTime;
        }

        /// <summary>
        /// 新建消息对象
        /// </summary>
        /// <param name="sender">消息源</param>
        /// <param name="msgStatus">消息状态</param>
        /// <param name="simTime">仿真时间</param>
        /// <returns></returns>
        public static SimInfo NewSimInfo(string sender, string description, OutputType msgStatus, UTCTime simTime)
        {
            return new SimInfo() { Sender = sender, Describe = description, MsgStatus = msgStatus, SimTime = simTime };
        }
    }

    public enum OutputType
    {
        消息, 错误, 警告,
    }
}
